print("姓名:袁兆华 学号: 20190751028")
print("1.for循环叠加1-100之和")
sum = 0
for i in range(1, 101):
    sum += i
print("1加到100之和为:", sum)
print()

print("2.while实现1加到100之和")
while i < 100:
    sum += i
    i += 1
print("1加到100之和为:", sum)